package com.byit.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("app_complaint")
public class AppComplaint extends Model<AppComplaint> {


    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 投诉标题
     */
    @TableField("title")
    private String title;

    /**
     * 投诉内容
     */
    @TableField("content")
    private String content;

    /**
     * 投诉类型  默认 1 1.公共、2.食品、3.卫生、4.交通
     */
    @TableField("type")
    private Integer type;

    /**
     * 处理结果 默认0.未处理 1.已处理
     */
    @TableField("manage_result")
    private Integer manageResult;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;

    /**
     * 处理人id
     */
    @TableField("operation_id")
    private Long operationId;


    /**
     * 是否删除
     */
    @TableField("is_del")
    private Integer isDel;

    @Override
    public String toString() {
        return "AppComplaint{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", type=" + type +
                ", manageResult=" + manageResult +
                ", remark='" + remark + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", operationId=" + operationId +
                ", isDel=" + isDel +
                '}';
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}